<?php

namespace models\Exception\Business;

use Exception;


class BookingException extends Exception {
    const BOOKING_IS_NOT_EXISTS = '订购信息不存在';

    const BOOKING_IS_NOT_EXISTS_NO = '404';

    const BOOKING_CREATE_FAILURE = '订购信息创建失败';

    const BOOKING_CREATE_FAILURE_NO = '422';

    const BOOKING_EDIT_FAILURE = '订购信息编辑失败';

    const BOOKING_EDIT_FAILURE_NO = '422';

    const BOOKING_ID_IS_EMPTY = '订购信息编号不能为空';

    const BOOKING_ID_IS_EMPTY_NO = '400';

    const BOOKING_DATA_EXPIRED = "订单已超时，请重新发起拼团";
    const BOOKING_DATA_EXPIRED_NO = "400";

    const BOOKING_NOT_EXISTS = "拼团信息不存在";
    const BOOKING_NOT_EXISTS_NO = "404";

    const INVALID_MEMBER = "无法替他人支付";
    const INVALID_MEMBER_NO = "400";

    const INVALID_BOOKING_STATS = "无效订单状态";
    const INVALID_BOOKING_STATS_NO = "400";

    const INVALID_PRICE_ARR = "价格计算出错，请联系客服";
    const INVALID_PRICE_ARR_NO = "500";

    const JQ_BOOKING_ARR = "机器拼团出错";
    const JQ_BOOKING_ARR_NO = "500";

}
